package com.zhangye.test.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.zhangye.test.model.EasyAr;

@Repository
public interface EasyArMapper {

    int deleteByPrimaryKey(Long id);

    int insert(EasyAr record);

    EasyAr selectByPrimaryKey(Long id);

    List<EasyAr> selectAll();

    int updateByPrimaryKey(EasyAr record);
    
    List<Map<String,Object>> selectByPage(Map<String, Object> param);
    
    List<Map<String,Object>> selectByPageCounts(Map<String, Object> param);

    List<EasyAr> selectByWhere(@Param("where") String where);

    int selectByWhereCount(@Param("where") String where);
    
    
    //app
    List<Map<String,Object>> selectByPageApiNew(Map<String, Object> param);
    
    List<Map<String,Object>> selectByPageCategory(Map<String, Object> param);
    
    EasyAr selectInfoById(Long Id);

    List<Map<String,Object>> selectWhere(@Param("where") String where);
}
